package com.biz.primus.ms.commodity.trans.saleTag;

import com.biz.primus.commodity.vo.saleTag.SaleTagVo;
import com.biz.primus.ms.commodity.dao.po.SaleTag;
import com.google.common.base.Function;
import javax.annotation.Nullable;

/**
 * Created by aaa on 2017/6/5.
 */
public class SaleTagVo2SaleTag implements Function<SaleTagVo, SaleTag> {
    @Nullable
    @Override
    public SaleTag apply(@Nullable SaleTagVo input) {
        SaleTag resp = new SaleTag();
        resp.setIdx(input.getIdx());
        resp.setId(Long.valueOf(input.getId()));
        resp.setEditor(input.getEditor());
        resp.setNote(input.getNote());
        resp.setShowName(input.getShowName());
        resp.setStatus(input.getStatus());
        resp.setSubTag(input.getSubTag());
        resp.setTag(input.getTag());
        resp.setTagImage(input.getTagImage());
        resp.setTagName(input.getTagName());
        return resp;
    }
}
